package com.hx.vending.dao;

import com.hx.vending.bean.CapitalFlow;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2018/12/25.
 * 流水
 */
@Repository
public interface CapitalFlowMapper {

    int deleteByPrimaryKey(Integer capitalFlowId);

    int insertSelective(CapitalFlow record);

    CapitalFlow selectByPrimaryKeySelective(CapitalFlow record);

    List<CapitalFlow> selectByExampleSelective(CapitalFlow record);

    int updateByPrimaryKeySelective(CapitalFlow record);

    List<CapitalFlow> selectByTime(@Param("userId")Integer userId, @Param("startTime")String startTime,
                                   @Param("stopTime")String stopTime,@Param("integerList") List<Integer> integerList);

    List<CapitalFlow> selectByWxPay(@Param("userId")Integer userId, @Param("startTime")String startTime,
                                    @Param("stopTime")String stopTime,@Param("integerList") List<Integer> integerList);

}
